import request from '@/utils/request'
// 获取列表
export function getDataList(params) {
  return request({
    url: '/quality/qualityFile/list',
    method: 'get',
    params,
  })
}
export function exportData(params) {
  return request({
    url: '/quality/qualityFile/export',
    method: 'get',
    params,
  })
}
export function addData(data) {
  return request({
    url: '/quality/qualityFile',
    method: 'post',
    data,
  })
}
export function updateData(data) {
  return request({
    url: '/quality/qualityFile',
    method: 'put',
    data,
  })
}
export function deletedData(ids) {
  return request({
    url: '/quality/qualityFile/' + ids,
    method: 'delete',
  })
}

// 获取文件详情
export function getDetail(id) {
  return request({
    url: '/quality/qualityFile/' + id,
    method: 'get'
  })
}

export function splitData(data) {
  return request({
    url: '/quality/qualityFile/splitFile',
    method: 'post',
    data,
  })
}
